package jni;

import com.sun.jna.Native;

/**
 * jni
 *
 * @author ilongsay created 2020/9/1 11:53
 */
public class Test1 {
    {
        Native.register("src/main/lib/testDll.dll");
    }
    public native double add(double i, double j);
    public native String getString(int a);

    public static void main(String[] args) {
        System.out.println(new Test1().add(11,34));
        System.out.println(new Test1().getString(11));
//        System.out.println(TestProject.INSTANCE.add(20.11,20.0));
//        System.out.println(TestProject.INSTANCE.mul(16.9,20.89));
//        System.out.println(TestProject.INSTANCE.getString("你是大帅哥 "));
    }
}
